using System;
using System.Collections.Generic;
using System.Configuration;

namespace JingQiao.Ads.Infrastructure.Data.NH
{
    using Domain.Model.DomainObject;

    public partial class AdsContext  
    {
        public const string ConnectionString = "name=AdsContext";
        public const string ContainerName = "AdsContext";

        #region Constructors

        public AdsContext()
            : this(ConnectionString, ContainerName)
        {
        }

        public AdsContext(string connectionString)
            : this(connectionString, ContainerName)
        {
        }

        public AdsContext(string connectionString, string containerName)
        {
        }

        #endregion

        #region ObjectSet Properties

        public ICollection<IAdvertisement>  Advertisement
        {
            get { return _advertisement ?? (_advertisement = null); }
        }
        private ICollection<IAdvertisement> _advertisement;

        public ICollection<IConfigInfo> ConfigInfo
        {
            get { return _configInfo ?? (_configInfo = null); }
        }
        private ICollection<IConfigInfo> _configInfo;

        public ICollection<IDestination> Destination
        {
            get { return _destination ?? (_destination = null); }
        }
        private ICollection<IDestination> _destination;

        public ICollection<IDestPositionAd> DestPositionAd
        {
            get { return _destPositionAd ?? (_destPositionAd = null); }
        }
        private ICollection<IDestPositionAd> _destPositionAd;

        public ICollection<IPosition> Position
        {
            get { return _position ?? (_position = null); }
        }
        private ICollection<IPosition> _position;

        public ICollection<ITemplate> Template
        {
            get { return _template ?? (_template = null); }
        }
        private ICollection<ITemplate> _template;

        #endregion
    }
}
